#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

void test()
{
    vector<int> v;
    v.reserve(5);
    for (int i = 1; i <= 5; ++i)
    {
        v.push_back(i);
    }

    vector<int>::reverse_iterator ri = find(v.rbegin(), v.rend(), 3);
    vector<int>::iterator i(ri.base());

    //Err
    //v.earse(--ri.base());

    //important
    v.erase((++ri).base());
}

int main()
{
    return 0;
}
